package com.itheima.controller;

import com.itheima.service.Servlet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Configuration
@RequestMapping("/user")
@ResponseBody
public class UserController {
    @Autowired
    private Servlet servlet;

    @RequestMapping("/save")
    public String save(){
        servlet.one();
        System.out.println("save ...");
        return "{'info' : 'hellow'}";
    }
}
